package user.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * User Object
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    /** 用户id*/
    private Long id;
    /** 用户基本信息*/
    private BaseInfo baseInfo;
    /** 用户额外信息*/
    private OtherInfo otherInfo;
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class BaseInfo{
        //用户名字
        private String name;
        //用户年龄
        private Integer age;
        //用户性别
        private String sex;
    }
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class OtherInfo{

        //用户电话
        private String phone;
        //用户地址
        private String address;
    }
}
